Fix crashes with lots of overlays.
authorEli Zaretskii <eliz@gnu.org>
Sat, 19 Jan 2013 20:04:33 +0000 (22:04 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 19 Jan 2013 20:04:33 +0000 (22:04 +0200)
commit7db0d939826e6123ebd610eeb014603da5b9a20b
tree9e07c3c971c2fe46b2a03e20093fa89f235c1f6b
parentb5600c6c1ab58db465ae3b6f6e418d6a62260431
Fix crashes with lots of overlays.

 src/editfns.c (get_pos_property): Use SAFE_ALLOCA_LISP, to avoid
 segfault when there are lots of overlays.
 src/buffer.c (sort_overlays): Use SAFE_NALLOCA, to avoid segfault
 when there are lots of overlays.  See
 http://lists.gnu.org/archive/html/emacs-devel/2013-01/msg00421.html
 for the details and a way to reproduce.
src/ChangeLog
src/buffer.c
src/editfns.c